import { createStore } from "vuex";
const store = createStore({
  state: {
    user: JSON.stringify(window.localStorage.getItem("token")),
  },
  mutations: {
    setUser(state, data) {
      state.user = data;
      window.localStorage.setItem("token", state.user);
    },
  },
});
export default store;
